<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="<?php echo ($sets->keyword); ?>" />
<meta name="description" content="<?php echo ($sets->description); ?>" />
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/newsdetails.css" />
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="__ROOT__/Public/Jquery/JQuery.screen.js"></script>
<script type="text/javascript" src="__ROOT__/Public/client_remind.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/header.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/newsDetails.js"></script>
<title>三原县信息网-- 新闻详细内容</title>
</head>
<body>
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/basic.css" />
<div id="header">
    <div class="top">
        <strong>三原县 　<span><?php echo ($now); ?> <font style="color:#06f;"><?php echo ($hello); ?></font></span></strong>
        <?php if(isset($_COOKIE['user'])): ?><span>欢迎,<b style="color:green;"><?php echo (cookie('user')); ?></b> <a href="__ROOT__/member.php">用户中心</a>|<a href="__ROOT__/User/logout">退出</a></span>
        <?php else: ?>
        <span><a href="<?php echo U('/User/reg');?>">注册</a> | <a href="<?php echo U('/User/login');?>">登陆</a></span><?php endif; ?>
    </div>
    <div class="body">
        <div class="logo"><a href="__ROOT__"><img src="__ROOT__/Tpl/Public/images/logo.gif" alt="网站logo"/></a></div>
        <div class="search">
            <form method="get" action="__ROOT__/Search/index/" class="search">
                <ul>
                    <li class="first"><span>信息</span><img src="__ROOT__/Tpl/Public/images/arrow.png" /></li>
                    <li class="show"><a href="#" title="1">信息</a></li>
                    <li class="show"><a href="#" title="2">新闻</a></li>
                </ul>
                <input type="hidden" name="type" id="type" value="1"/><input type="text" name="keyword" class="stext" value="<?php echo ($_GET['keyword']); ?>" /> <input type="submit" value="搜索" class="sub" />
            </form>
        </div>
        <div class="toppost">
            <a href="<?php echo U('/Post/index');?>" style="color:orange;">免费发布信息</a>
            <a href="__ROOT__/member.php/Index/myInfo" style="color:#666;" class="u">修改删除信息</a>
        </div>
    </div>
</div>
<div id="category">
    <ul>
        <li><a href="__ROOT__">首页</a></li>
        <li><a href="<?php echo U('/News');?>">新闻资讯</a></li>
        <?php if(is_array($teninfonav)): $i = 0; $__LIST__ = $teninfonav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/Category/index','id='.$value['id']);?>"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
        <li><a href="<?php echo U('/About');?>">关于本站</a></li>
    </ul>
</div>

<div id="map"><img src="__ROOT__/Tpl/Public/images/location.gif" style="position:relative;top:2px;"/>  <a href="/">三原县信息网</a> &gt; <a href="<?php echo U('/News');?>">新闻资讯</a> &gt; <?php echo ($currentnav); ?> </div>
<div id="nleft">  
    <div class="content">
        <h3><a href="<?php echo U('/NewsDetails/index','id='.$_GET['id']);?>" style="color:#000;text-decoration:none;"><?php echo ($current["title"]); ?></a></h3>     
        <p class="p1">时间：<?php echo (date('Y-m-d H:i:s',$current["addtime"])); ?>　来源：<?php echo ($current["from"]); ?>　作者：<?php echo ($current["writer"]); ?>　点击量：<?php echo ($current["view_count"]); ?> 次</p>
        <p class="p2"><?php echo ($current["summary"]); ?></p>
        <div class="commend">
            <input type="hidden" id="root" value="__ROOT__" />
            <h2>全部评论</h2>
            <?php if(is_array($allcommend)): $i = 0; $__LIST__ = $allcommend;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><div class="c">
                    <p class="user"><em><span class="n"><?php echo ($value["floor"]); ?></span>楼</em><span class="name"><?php echo ($value["user"]); ?></span> [<?php echo (date('m-d H:i:s',$value["addtime"])); ?>]</p>
                    <p class="content"><?php echo ($value["content"]); ?></p>
                </div><?php endforeach; endif; else: echo "$empty" ;endif; ?>
            <div id="page"><?php echo ($page); ?></div>
            <?php if($_COOKIE['user']): if($current['is_commend'] == 1): ?><div class="post">
                    <form method="post" class="c">
                         <span class="middle">评论内容:</span><textarea name="content"></textarea> <span class="middle" style="color:red;">(200字以内)</span><br />
                         <input type="hidden" name="user" value="<?php echo (cookie('user')); ?>" />
                         <input type="hidden" name="nid" value="<?php echo ($_GET['id']); ?>" />
                         <input type="submit" name="send" value="提交" class="sub"/>                    
                    </form>
                </div>
                <?php else: ?>
                    <p class="tip" style="color:red;">该新闻已禁止评论</p><?php endif; ?>
            <?php else: ?>
                <p class="tip"><span><a href="###" id="windowLogin">登陆</a></span>后才能评论</p><?php endif; ?>
        </div>
    </div>  
</div>
<div id="nright">
    <div class="hot">
        <h2>同类热评</h2>
        <ul>
           <?php if(is_array($simhot)): $i = 0; $__LIST__ = $simhot;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><em>[<?php echo (date('m-d',$value["addtime"])); ?>]</em><a href="<?php echo U('/NewsDetails/index', 'id='.$value['id']);?>" title="<?php echo ($value["ftitle"]); ?>" target="_blank"><?php echo (cuttext($value["title"],10)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>
<div id="loading" style="display:none;position:absolute;z-index:10000;"><img src="__ROOT__/Tpl/Public/images/loading.gif" alt="等待"/></div>
<div id="sinfo"><p>评论成功</p></div>
<div id="linfo"><p>登陆成功</p></div>
<!-- 登陆小窗口 -->
<div id="login">
    <p class="t">填写账号<a href="###" id="close"><img src="__ROOT__/Tpl/Public/images/close.png" /></a></p>
    <form>
        <dl>
            <dd>用 户  名：<input type="text" name="name" class="text"/>　<a href="<?php echo U('User/reg');?>" style="color:blue;text-decoration:none;" target="_blank">没有账号？立即注册</a></dd>
            <dd>密 　   码：<input type="password" name="pass" class="text"/>　<a href="<?php echo U('User/findpass');?>" style="color:blue;text-decoration:none;" target="_blank">忘记密码？</a></dd>
            <dd class="c">验 证 码：<input type="text" name="checkcode" class="check"/> <img src="__ROOT__/index.php/Public/checkCode" style="position:relative;top:10px;cursor:pointer;" onclick="this.src='__ROOT__/index.php/Public/checkCode/id/'+Math.random();"></dd>
            <dd><input type="checkbox" name="remeber"  value="1"/> 保存信息一周</dd>
            <dd><input type="submit" name="send" value="登    录" class="sub" id="ajaxLogin"/></dd>
        </dl>
    </form>
</div>



<div id="flinks">
    <h2>友情链接</h2>  
    <ul>
        <?php if(is_array($flinks)): $i = 0; $__LIST__ = $flinks;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($value["url"]); ?>" target="_blank"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>  
</div>
<div id="footer">
    <p>©三原县信息网 晋 ICP备12009119号</p>
    <p>Powered by 信息网 xxx.xxxx.xx</p>
</div>

</body>
</html>